
public class ResistanceSensor extends InputDevice{

	/****************************************
	 * Constructor
	 ****************************************/
	public ResistanceSensor(int address, iCATch316 iCatch) {
		super(address, iCatch);
	}

	
	/****************************************
	 * Return the current reading
	 ****************************************/
	@Override
	public int getReading() {
		return Integer.parseInt(iCatch.getResistanceSensorReading(address)); /** To be modified **/
	}

	
	/****************************************
	 * Check whether the resistance sensor
	 * is being held
	 ****************************************/
	public boolean isHeld() {
		return (getReading() > 0); /** To be modified **/
	}
}
